package com.wfu.module_base.app;

import android.app.Application;

/**
 * Describe:
 * Author: wfy
 * Version:
 * Create by (wfy) on 2018/5/7 15:38
 * <p>
 * company :
 */
public class GlobalApp {
    private static Application application;
    private static boolean debug;


    public static void init(Application app) {
        init(app, true);
    }

    public static void init(Application app, boolean debug) {
        setApplication(app);
        setDebug(debug);
    }

    public static Application getApplication() {
        return application;
    }

    public static void setApplication(Application application) {
        GlobalApp.application = application;
    }

    public static boolean isDebug() {
        return debug;
    }

    public static void setDebug(boolean debug) {
        GlobalApp.debug = debug;
    }
}
